<?php

class McCube_Html{

    public static function meta($name, $content){
        if('charset' == $name){
            $name    = 'http-equiv="Content-Type"';
            $content = ' content="text/html; charset='.$content.'"';
        } else{
            $name    = 'name="'.$name.'"';
            $content = ' content="'.$content.'"';
        }

        return '<meta '.$name.$content.' />';
    }

    /**
     *
     *
     * @return object
     */
    public static function getIcon(){
        return new McCube_Html_Icon();
    }


    /**
     *
     *
     * @return object
     */
    public static function getMenu(){
        return new McCube_Html_Menu();
    }

    /**
     *
     *
     * @return object
     */
    public static function getListing(){
        return new McCube_Html_Listing();
    }

    /**
     *
     *
     * @return object
     */
    public static function getAccordion(){
        return new McCube_Html_Accordion();
    }

    /**
     *
     *
     * @return object
     */
    public static function getTabs(){
        return new McCube_Html_Tabs();
    }

    /**
     *
     *
     * @return object
     */
    public static function getForm(){
        return new McCube_Html_Form();
    }


}